package com.aldobucchi.x.Math
{


	import com.aldobucchi.utils.AbstractTest;

	public class NormalizedFactorTest extends AbstractTest
	{
		
		
		public function testConstruction( ):void
		{

			var nf:NormalizedFactor;
			
			
			nf = new NormalizedFactor( 5 );
			assertEquals( nf.factor , 5 );
			assertEquals( nf.isDivision, false );


			nf = new NormalizedFactor( 0.5 );
			assertEquals( nf.factor , 2 );
			assertEquals( nf.isDivision, true );
			
			
			
			/////// border cases
			///////////////////////////////////
			
			nf = new NormalizedFactor( 1 );
			assertEquals( nf.factor , 1 );
			assertEquals( nf.isDivision, false );
			
			
			nf = new NormalizedFactor( 0 );
			assertEquals( nf.factor , 0 );
			assertEquals( nf.isDivision, false );
			
			
			
		
		}
		
	}

}